using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EcsSiteDSTableAdapters;
using System.ComponentModel;

/// <summary>
/// Summary description for TendersOptions
/// </summary>

namespace SiteECSWeb
{
    [DataObject]
    public class TendersOptionsBLL
    {
        #region ClassConstructor
        public TendersOptionsBLL()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        #endregion


        private TendersOptionsTableAdapter _TendersOptionsAdapter;

        protected TendersOptionsTableAdapter TendersOptionsAdapter
        {
            get
            {
                if (_TendersOptionsAdapter == null)
                {
                    _TendersOptionsAdapter = new TendersOptionsTableAdapter();
                }
                return _TendersOptionsAdapter;
            }
        }

        #region SelectableTable
        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.TendersOptionsDataTable GetAllTendersCountries()
        {
            return TendersOptionsAdapter.GetTendersCountriesData();
        }
        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.TendersOptionsDataTable GeTendersCountCountry()
        {
            return TendersOptionsAdapter.GetTendersCountCountryData();
        }

        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.TendersOptionsDataTable
            GetTendersCountByCityIDYear(int CityID, int Year)
        {
            return TendersOptionsAdapter.GetTendersCountMonthDataByCityIDYear(CityID, Year);
        }
        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.TendersOptionsDataTable
            GetTendersCountByInternalOffYear(int Int_Off, int Year, int Month)
        {
            return TendersOptionsAdapter.GetTendersCountMonthDataByInternalOffYear(Int_Off,Year,Month);
        }

        #endregion
    }
}
